<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.longtop.com/intelliweb" prefix="e"%>
<%@page import="com.longtop.framework.common.CacheUtil"%>
<%@ page session="false"%>
<html>
<head>
<title><%=CacheUtil.getConfigValueById("0002")%></title>
</head>

<e:View id="view">
    <script type="text/javascript">SkinUtil.getSkin();</script>
    <script type="text/javascript">SkinUtil.getModuleSkin();</script>
   
   <div id="Invisual Controls" style="min-height: 40px; background-color: LemonChiffon;" >
	    <e:Command id="Command_submit" action="com.longtop.framework.sys.login.web.LoginAction" method="loginCheck"
	               alwaysPerform="true" submitForm="true" showHintInfoOnSuccess="false" forward="Forward_success" submitFormScope="all">
	    	<e:Parameter name="loginType" value="1"></e:Parameter>		
	    </e:Command>
	    
	    <e:Forward id="Forward_success" path="/main.jsp" contextRelative="true" target="_self"/>   
   </div>

<body>

<e:Page id="page1" style="width:100%;height:100%" action="com.longtop.framework.sys.login.web.LoginAction" onAfterLoadPage="ePage_onAfterLoadPage()">
	<table cellpadding="0" cellspacing="0" border=0 style="width:100%;height:100%">
		<tr>
			<td  align="center" height="90%">
		        <e:SubWindow id="window1" caption="" showCloseButton="false" showOptionsButton="false"
		        		showMaximizeButton="false" draggable="false" resizable="false"
		        		showMinimizeButton="false" style="position:relative;width:650px;height:260px">
        			<table border=0  cellpadding="10" cellspacing="10" style="width:100%;height:100%">
        				<tr>
				            <td width="50%">
				            	<table cellpadding="0" cellspacing="0" style="width:100%;height:100%">
				            		<tr>
				            			<td style="background: #fff url(images/logo_drc.bmp) no-repeat top left;" colspan=2  height="100%"></td>
				            		</tr>
				            		<tr>
				            			<td width="100%"></td>
										<td noWrap style="color:#999">
											<b style="height:25px"><e:Image id="imgSetting" path="/images/setting.gif" customAttributes="align='absmiddle'"/>页面选项</b><br/>
											<a style="height:20px" class="index" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<%="http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()%>');" href="javascript:;">· 设本页为默认首页</a><br/>
											<a style="height:20px" class="index" href="javascript:window.external.AddFavorite('<%="http://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()%>','东莞农商行绩效管理系统')">· 将本页加入收藏夹</a>
										</td>
									</tr>
									<tr>
										<td colspan=2 height="10px"></td>
									</tr>
            					</table>
           					</td>
            				<td width="1px"><span style="height:100%;width:1px;border-left:1px #ddd solid"></span></td>
				            <td width="50%">
			                    <table cellpadding="0" cellspacing="0" style="width:100%;height:100%">
				                    <tr>
				                    	<td colspan="2"><em style="color: #317ec8;font-style: normal;">欢迎您使用本系统，请输入您的登录信息</em></td>
				                    </tr>
				                    <tr>
				                    	<td colspan="2" nowrap="nowrap" >
				                    	<e:Image id="imgLoginType" path="/images/position.gif" customAttributes="align='absmiddle'"/>
				                    		<e:Radio id="Radio_LoginType" itemPlacement="horizontal">
				                    			<e:RadioItem  name="item1" label="员工号 "  value="1" checked="true"></e:RadioItem>
				                    			<e:RadioItem  name="item2" label="OA用户名 "  value="2"></e:RadioItem>			                    			
				                    			<e:RadioItem  name="item3" label="身份证"  value="3"></e:RadioItem>		                    			
				                    		</e:Radio>
				                    	</td>
				                    </tr>				                    	
				                    <tr>
				                        <td nowrap="nowrap">
				                        	<e:Image id="imgUserName" path="/images/username.gif" customAttributes="align='absmiddle'"/>&nbsp;
				                        	<label for="username">登&nbsp;录&nbsp;号：</label>
				                        </td>
				                        <td width="100%">
				                        	<input id="Editor_loginName" type="text" onkeyup="Editor_loginName_onKeyUp(this)" style="width: 140px; "/>
				                        </td>
				                    </tr>
				                    <tr>
				                        <td nowrap="nowrap">
				                        	<e:Image id="imgPassword" path="/images/password.gif" customAttributes="align='absmiddle'"/>&nbsp;
				                        	<label for="username">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label> 
				                        </td>
				                        <td width="100%">
				                       		<input id="Editor_password" type="password" onkeyup="Editor_password_onKeyUp(this)" maxLength="20" style="width: 140px; "/>
				                        </td>
				                    </tr>
				                    <tr>
				                    	<td>&nbsp;</td>
				                    	<td><e:Button id="Button_submit" style="width: 70px; height: 22px" iconPlacement="right" icon="/images/login.gif" caption="登 录" onClick="Button_submit_onClick(this);" /></td>
				                    </tr>
				                    <tr height="20">
				                    	<td colspan="2" align="right"><e:Label id="Label1" caption="&nbsp;"></e:Label></td>
									</tr>
			                    </table>
				            </td>
        				</tr>
        			</table>
        		</e:SubWindow>
        		<span style="color:#999;font-size:7pt">&copy;2011 东莞农村商业银行</span>
			</td>
		</tr>
		<tr>
			<td></td>
		</tr>
	</table>

</e:Page>

</body>
</e:View>
</html>
<script>
	function ePage_onAfterLoadPage(){
   		 if(Cookie.getValue("loginType") != "" && Cookie.getValue("loginType") != null ){
   		 	$J("Radio_LoginType").setCheckedValue(Cookie.getValue("loginType"));
   		 }
   		 
   		 //alert("【Intelliweb.jar版本:】" + System.getIntelliWebVersion());	//查看Intelliweb.jar版本
		//window.status = "【Intelliweb.jar版本:】" + System.getIntelliWebVersion();	//查看Intelliweb.jar版本
    }
<!--
    function Editor_loginName_onKeyUp(self) {
        if (event.keyCode == 13 && self.value != "") {
            //Button_submit_onClick(self);
            Editor_password.focus();
        }
    }
    
    function Editor_password_onKeyUp(self) {
        if (event.keyCode == 13 && self.value != "") {
            Button_submit_onClick(self);
        }
    }
    
    function Button_submit_onClick(self) {
    	if(Editor_loginName.value == "") {
    		MsgBox.showInfoMsg("请输入用户名");
    		Editor_loginName.focus();
    	}
    	if(Editor_password.value == "") {
    		MsgBox.showInfoMsg("请输入密码");
    		Editor_password.focus();
    	}
    	
    	if(Editor_loginName.value != "" && Editor_password.value != ""){
    		Cookie.setValue("loginName", Editor_loginName.value);
    		
    		//设置登入类型：
    		var loginType = $J("Radio_LoginType").getCheckedValue(); 
    		Cookie.setValue("loginType", loginType);
    		Command_submit.parameters.setValue("loginType",loginType);
    		
	       	Command_submit.execute();
	        return true;
	    }
	    
	    return false;
    }
    
    function _document_onload() {
       if(typeof Editor_loginName != "undefined"){
       		if(Cookie.getValue("loginName") != "" && Cookie.getValue("loginName") != null )
           		Editor_loginName.value = Cookie.getValue("loginName");
           		Editor_loginName.focus();
       }
    }
    window.attachEvent("onload",_document_onload);
//-->
</script>